package com.cloudcc.mobile.entity.addmicropost;

import java.io.Serializable;

import com.cloudcc.mobile.entity.EntityBase;
import com.cloudcc.mobile.entity.chat.DraftBox;
import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Foreign;
import com.lidroid.xutils.db.annotation.Table;

/** 发布普通类型的帖子 */
@Table(name = "AddMicroPostF")
public class AddMicroPostF extends EntityBase implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column(column = "body")
	public String body;
	// 帖子的目标类型，可以为空，默认为follower、record 表示目标类型为记录、follower 表示类型为我的追随者、 person
	// 表示类型为某个人
	@Column(column = "targetType")
	public String targetType;
	@Column(column = "targetIdname")
	public String targetIdname;
	@Column(column = "targetId")
	public String targetId;// 目标id,如果targetType为record或person时，需要输入
	@Column(column = "recordId")
	public String recordId;// 　　相关记录id，当targetType为record时，需要输入。(在记录下发帖)
	@Column(column = "longitude")
	public double longitude;
	@Column(column = "latitude")
	public double latitude;
	@Column(column = "address")
	public String address;
	@Column(column = "isClickable")
	public boolean isClickable;
	@Column(column = "taskIdOrEventId")
	public String taskIdOrEventId;
	@Foreign(column = "parentId", foreign = "id")
	public DraftBox parent;

	public AddMicroPostF(String body, String targetType, String targetIdname,
			String targetId, String recordId, DraftBox parent) {
		super();
		this.body = body;
		this.targetType = targetType;
		this.targetIdname = targetIdname;
		this.targetId = targetId;
		this.recordId = recordId;
		this.parent = parent;
	}

	public AddMicroPostF() {
		super();
	}

	public boolean isClickable() {
		return isClickable;
	}

	public void setClickable(boolean isClickable) {
		this.isClickable = isClickable;
	}

	public String getTaskIdOrEventId() {
		return taskIdOrEventId;
	}

	public void setTaskIdOrEventId(String taskIdOrEventId) {
		this.taskIdOrEventId = taskIdOrEventId;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getTargetType() {
		return targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	public String getTargetIdname() {
		return targetIdname;
	}

	public void setTargetIdname(String targetIdname) {
		this.targetIdname = targetIdname;
	}

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public DraftBox getParent() {
		return parent;
	}

	public void setParent(DraftBox parent) {
		this.parent = parent;
	}

}
